package com.tarena.csmall.front.web.repository;

import cn.tedu.mall.pojo.product.vo.AttributeStandardVO;
import com.tarena.csmall.front.web.mapper.AttributeMapper;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class AttributeRepositoryImpl implements AttributeRepository{
    @Autowired
    private AttributeMapper attributeMapper;
    @Override public List<AttributeStandardVO> getAttributes(Long id) {
        //TODO 引入缓存
        return attributeMapper.selectAttributesBySpuId(id);
    }
}
